﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create a New Account</h2>
    <p>
        Use the form below to create a new account.
    </p>
    <p>
        Passwords are required to be a minimum of
        <%=Html.Encode(ViewData["PasswordLength"])%>
        characters in length.
    </p>
    <%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset>
            <legend>Create An Account</legend>
            <p>
                <label for="username">
                    Username:</label>
                <%= Html.TextBox("username") %>
                <%= Html.ValidationMessage("username") %>
            </p>
            <p>
                <label for="email">
                    Email:</label>
                <%= Html.TextBox("email") %>
                <%= Html.ValidationMessage("email") %>
            </p>
            <p>
                <label for="password">
                    Password:</label>
                <%= Html.Password("password") %>
                <%= Html.ValidationMessage("password") %>
            </p>
            <p>
                <label for="confirmPassword">
                    Confirm password:</label>
                <%= Html.Password("confirmPassword") %>
                <%= Html.ValidationMessage("confirmPassword") %>
            </p>            
            <%--<p>
                <label for="FirstName">
                    First Name:</label>
                <%= Html.TextBox("FirstName") %>
                <%= Html.ValidationMessage("FirstName", "*") %>
            </p>
            <p>
                <label for="LastName">
                    Last Name:</label>
                <%= Html.TextBox("LastName") %>
                <%= Html.ValidationMessage("LastName", "*") %>
            </p>
            <p>
                <label for="BirthDate">
                    BirthDate XX-XX-XXXX:</label>
                <%= Html.TextBox("BirthDate") %>
                <%= Html.ValidationMessage("BirthDate", "*") %>
            </p>
            <p>
                <label for="Sex">
                    Sex:</label>
                Male <%= Html.RadioButton("Sex", 'm', true)%> Female <%= Html.RadioButton("Sex", 'f', new { title = "Female" })%>
                <%= Html.ValidationMessage("Sex", "*") %>
            </p>            
            
            <p>
                <label for="Hometown">
                    Hometown:</label>
                <%= Html.TextBox("Hometown", "Boston, MA") %>
                <%= Html.ValidationMessage("Hometown", "*") %>
            </p>
            <p>
                <label for="AboutMe">
                    Tell us about yourself:</label>
                <%= Html.TextArea("AboutMe", new { rows = "10", cols = "50" })%>
                <%= Html.ValidationMessage("AboutMe", "*") %>
            </p>
            <p>
                <label for="IsPublic">
                    Make your profile public?</label>
                <%= Html.CheckBox("IsPublic", true) %>
                <%= Html.ValidationMessage("IsPublic", "*") %>
            </p>
            <%= Html.Hidden("MemberSince", DateTime.Now.ToString("MM-dd-yyyy")) %>
            --%>
            <p>
                <input type="submit" value="Register" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
